#pragma once 
#include "socket.hpp"


namespace TCPSeverModule
{
    using namespace SocketModule;

    class TCPSever
    {
    public:
        TCPSever():_listenedfd(std::make_shared<Socket>())
        {
            _listenedfd->BuildTcpSocketMethod(8888);
        }
        void Loop()
        {
            while(true)
            {

            }
        }
        ~TCPSever()
        {
            _listenedfd->Close();
        }
    private:
        std::shared_ptr<Socket> _listenedfd;
    };
}